// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_FA_MANUFACTURER_HISTORY
// * CreateDate    : 2014-06-05 18:29:42
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:42
// * LastChanger   : 2014-06-05 18:29:42
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class FaManufacturerHistoryEntity : EntityBase
    {
        public FaManufacturerHistoryTable TableSchema
        {
            get
            {
                return FaManufacturerHistoryTable.Current;
            }
		}
		
		public FaManufacturerHistoryEntity()
        {

        }
		
		public FaManufacturerHistoryEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
			this.AssetId = Convert.ToString(CommonFunctions.ToObject(dr["ASSET_ID"]));
			this.MaintainItem = Convert.ToString(CommonFunctions.ToObject(dr["MAINTAIN_ITEM"]));
			this.MaintainDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["MAINTAIN_DATE"]));
			this.MaintainCompany = Convert.ToString(CommonFunctions.ToObject(dr["MAINTAIN_COMPANY"]));
			this.MaintainPerson = Convert.ToString(CommonFunctions.ToObject(dr["MAINTAIN_PERSON"]));
			this.MaintainFee = Convert.ToDecimal(CommonFunctions.ToObject(dr["MAINTAIN_FEE"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }
		
		public FaManufacturerHistoryEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
			this.AssetId = Convert.ToString(CommonFunctions.ToObject(dr["ASSET_ID"]));
			this.MaintainItem = Convert.ToString(CommonFunctions.ToObject(dr["MAINTAIN_ITEM"]));
			this.MaintainDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["MAINTAIN_DATE"]));
			this.MaintainCompany = Convert.ToString(CommonFunctions.ToObject(dr["MAINTAIN_COMPANY"]));
			this.MaintainPerson = Convert.ToString(CommonFunctions.ToObject(dr["MAINTAIN_PERSON"]));
			this.MaintainFee = Convert.ToDecimal(CommonFunctions.ToObject(dr["MAINTAIN_FEE"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return FaManufacturerHistoryTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string Id
        {
            get { return Convert.ToString(GetData(FaManufacturerHistoryTable.C_ID)); }
            set { SetData(FaManufacturerHistoryTable.C_ID, value); }
        }
		
        [DataMember]
        public string AssetId
        {
            get { return Convert.ToString(GetData(FaManufacturerHistoryTable.C_ASSET_ID)); }
            set { SetData(FaManufacturerHistoryTable.C_ASSET_ID, value); }
        }
		
        [DataMember]
        public string MaintainItem
        {
            get { return Convert.ToString(GetData(FaManufacturerHistoryTable.C_MAINTAIN_ITEM)); }
            set { SetData(FaManufacturerHistoryTable.C_MAINTAIN_ITEM, value); }
        }
		
        [DataMember]
        public DateTime MaintainDate
        {
            get { return Convert.ToDateTime(GetData(FaManufacturerHistoryTable.C_MAINTAIN_DATE)); }
            set { SetData(FaManufacturerHistoryTable.C_MAINTAIN_DATE, value); }
        }
		
        [DataMember]
        public string MaintainCompany
        {
            get { return Convert.ToString(GetData(FaManufacturerHistoryTable.C_MAINTAIN_COMPANY)); }
            set { SetData(FaManufacturerHistoryTable.C_MAINTAIN_COMPANY, value); }
        }
		
        [DataMember]
        public string MaintainPerson
        {
            get { return Convert.ToString(GetData(FaManufacturerHistoryTable.C_MAINTAIN_PERSON)); }
            set { SetData(FaManufacturerHistoryTable.C_MAINTAIN_PERSON, value); }
        }
		
        [DataMember]
        public decimal MaintainFee
        {
            get { return Convert.ToDecimal(GetData(FaManufacturerHistoryTable.C_MAINTAIN_FEE)); }
            set { SetData(FaManufacturerHistoryTable.C_MAINTAIN_FEE, value); }
        }
		
        [DataMember]
        public string Remark
        {
            get { return Convert.ToString(GetData(FaManufacturerHistoryTable.C_REMARK)); }
            set { SetData(FaManufacturerHistoryTable.C_REMARK, value); }
        }
		
		#endregion
	}
	
	
}	

